package com.kede.api.stand.controller.recy;

import com.kede.api.stand.service.IRecyService;
import com.kede.pojo.ResHttp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 区域负责人电话
 * @Author:Pr.li
 * @Date: create in 2023/7/1 14:47
 */
@RequestMapping("recy")
@RestController
public class RecyIndexController {

    @Resource
    private IRecyService recyService;

    @GetMapping("getHeadPhoneByAdCode")
    public ResHttp getHeadPhoneByAdCode(Integer areaCode){
        return recyService.getHeadPhoneByAdCode(areaCode);
    }

    @GetMapping("getHeadPhoneByOrderId")
    public ResHttp getHeadPhoneByOrderId(Integer orderId){
        return recyService.getHeadPhoneByOrderId(orderId);
    }



}
